<?php

namespace app\common\business;

use app\common\model\mysql\SpecsValue as specsValueModel;

class BaseBus
{
    public function add($data)
    {
        $data['status'] = config("status.mysql.table_normal");
        try {
            $res = $this->Model->save($data);
        } catch (\Exception $e) {
            return 0;
        }
        if ($res) {
            return $this->Model->id;
        }
    }
}